package com.module.compose.base.utils

import android.app.Application
import android.widget.Toast

object ToastUtils {
    var context: Application? = null

    fun initToast(context: Application) {
        this.context = context
    }

    fun show(msg: String) {
        context?.let {
            Toast.makeText(it, msg, Toast.LENGTH_SHORT).show()
        }
    }
}